
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="rich" uri="http://richfaces.org/rich"%>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
        request.setAttribute("nombrePagina", "Plantilla");
%>
<f:view>
    <%@include file="/WEB-INF/jspf/header.jspf" %>

    <%@include file="/WEB-INF/jspf/breadcumbs.jspf" %>

    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>Retasar Garant&iacute;as</title>
        </head>
        <body>
            <h1>Retasar Garant&iacute;as</h1>
            <h2>Retasar Garant&iacute;as</h2>
            <h:messages id="messages" styleClass="messages_content" layout="table" errorClass="error" warnClass="warn" infoClass="info"/>
            <h:form>
                
                <fieldset>
                    <legend>Valores de Tasacion</legend>
                    <t:panelGrid columns="3" rendered="#{RetasarController.verPrendarias}">
                         <h:outputLabel value="Monto Anterior: " for="txtMontoAntP" />
                         <h:inputText id="txtMontoAntP" value="#{RetasarController.garantiaPrendaria.valortasacion}" readonly="true"/>
                         <h:inputText value="#{RetasarController.garantiaPrendaria.tipomoneda}" readonly="true"/>

                         <h:outputLabel value="Nuevo Monto: " for="txtMontoNuevoP" />
                         <h:inputText id="txtMontoNuevoP" value="#{RetasarController.valorAActualizar}" readonly="true"/>
                         <h:inputText value="#{RetasarController.tipoMonedaNueva}" readonly="true"/>
                    </t:panelGrid>

                    <t:panelGrid columns="3" rendered="#{RetasarController.verHipotecarias}">
                         <h:outputLabel value="Monto Anterior: " for="txtMontoAntH" />
                         <h:inputText id="txtMontoAntH" value="#{RetasarController.garantiaHipotecaria.valortasacion}" readonly="true"/>
                         <h:inputText value="#{RetasarController.garantiaHipotecaria.tipomoneda}" readonly="true"/>

                         <h:outputLabel value="Nuevo Monto: " for="txtMontoNuevoH" />
                         <h:inputText id="txtMontoNuevoH" value="#{RetasarController.valorAActualizar}" readonly="true"/>
                         <h:inputText value="#{RetasarController.tipoMonedaNueva}" readonly="true"/>
                    </t:panelGrid>

                    <t:panelGrid columns="3" rendered="#{RetasarController.verPignoraticias}">
                         <h:outputLabel value="Monto Anterior: " for="txtMontoAntPI" />
                         <h:inputText id="txtMontoAntPI" value="#{RetasarController.garantiaPignoraticia.importe}" readonly="true"/>
                         <h:inputText value="#{RetasarController.garantiaPignoraticia.tipomoneda}" readonly="true"/>

                         <h:outputLabel value="Nuevo Monto: " for="txtMontoNuevoPI" />
                         <h:inputText id="txtMontoNuevoPI" value="#{RetasarController.valorAActualizar}" readonly="true"/>
                         <h:inputText value="#{RetasarController.tipoMonedaNueva}" readonly="true"/>
                    </t:panelGrid>

                    <t:panelGrid columns="3" rendered="#{RetasarController.verWarrant}">
                         <h:outputLabel value="Monto Anterior: " for="txtMontoAntWA" />
                         <h:inputText id="txtMontoAntWA" value="#{RetasarController.garantiaWarrant.valortasacion}" readonly="true"/>
                         <h:inputText value="#{RetasarController.garantiaWarrant.tipomoneda}" readonly="true"/>

                         <h:outputLabel value="Nuevo Monto: " for="txtMontoNuevoWA" />
                         <h:inputText id="txtMontoNuevoWA" value="#{RetasarController.valorAActualizar}" readonly="true"/>
                         <h:inputText value="#{RetasarController.tipoMonedaNueva}" readonly="true"/>
                    </t:panelGrid>
                </fieldset>
                
                <h:commandButton id = "btnRetasar" value="Retasar" action="#{RetasarController.retasar}" />
                <h:commandButton id = "btnCancelar" value="Volver" action="volver" />
            </h:form>
        </body>
    </html>
    <%@include file="/WEB-INF/jspf/footer.jspf" %>
</f:view>
